<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of VModulo
 * @author alan
 */
class VModulo extends VListaCrud {
    public function listar(){
        $this->sqlLista();
        $this->filtrar();
        $this->tabela = new VListaEdicaoPaginada($this->conexao, $this->sql);
        $this->tabela->setLink("app=Acao");
        return $this->getFormPesquisa() . $this->getFormCabecalhoLista() . $this->tabela . $this->getFormRodapeLista();
    }
    //put your code here
    public function edit(){
        $tabela = new TableSqlModulos("SELECT idAplicacao,nome,descricao FROM modulo");
        $form=
            "
                <h1>Modulos disponiveis</h1>\n
                {$tabela}
            ";
        //$linkAcoes = "<a href='index.php?app=Acoes&idModulo=2'>A��es do m�dulo</a><br><br>";
        //echo $linkAcoes.$form;
        echo $form;
    }
}
?>